package com.lovo.sys.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@TableName("productinfo")
@Getter
@Setter
@NoArgsConstructor
@ApiModel(value = "商品明细实体", description = "商品明细实体")
public class ProductInfoBean {
    @ApiModelProperty("商品明细id")
    @TableId(value = "pk_productInfoId")
    private long productInfoId;
    @ApiModelProperty("商品单价")
    @TableField("pi_price")
    private float price;
    @ApiModelProperty("图片地址")
    @TableField("pi_img")
    private String img;
    @ApiModelProperty("库存数量")
    @TableField("pi_inventory")
    private int inventory;
    @ApiModelProperty("规格")
    @TableField("pi_specs")
    private String specs;
    @ApiModelProperty("商品外键")
    @TableField("fk_productId")
    private long productId;
    @TableField("pi_productName")
    @ApiModelProperty(value = "商品名")
    private String productName;
    @ApiModelProperty(value = "图片")
    @TableField("pi_img")
    private String imgPath;
}
